<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
	<head>
		<title>Log in</title>
	</head>
	<body>
		<h1>Log in</h1>
		
		<c:if test="${not empty param.error}">
			<p>Login failed!</p>
		</c:if>
		
		<form action="j_spring_security_check" method="post">
			<table>
				<tr>
					<th>Username: </th>
					<td><input name="j_username" type="text" /></td>
				</tr>
				<tr>
					<th>Password: </th>
					<td><input name="j_password" type="password" /></td>
				</tr>
				<tr>
					<th />
					<td><input type="submit" value="Log in" /></td>
				</tr>
			</table>
		</form>
	</body>
</html>